// AddWatch.cpp : implementation file
//

#include "stdafx.h"
#include "SmpWatcher.h"
#include "AddWatch.h"


// CDlgAddWatch dialog

IMPLEMENT_DYNAMIC(CDlgAddWatch, CDialog)
CDlgAddWatch::CDlgAddWatch(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgAddWatch::IDD, pParent)
	, m_cstrType(_T(""))
	, m_cstrName(_T(""))
	, m_cstrAddr(_T(""))
{
}

CDlgAddWatch::~CDlgAddWatch()
{
}

void CDlgAddWatch::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT1, m_cstrType);
	DDX_Text(pDX, IDC_EDIT2, m_cstrAddr);
	DDX_Text(pDX, IDC_EDIT3, m_cstrName);

	m_dwAddr=(DWORD)(-1);
	if(-1==m_cstrAddr.Find(_T("0x")))
	{
		sscanf(m_cstrAddr, _T("%d"), &m_dwAddr);
	}
	else
	{
		sscanf(m_cstrAddr, _T("0x%x"), &m_dwAddr);
	}
}


BEGIN_MESSAGE_MAP(CDlgAddWatch, CDialog)
END_MESSAGE_MAP()


// CDlgAddWatch message handlers
// AddWatch.cpp : implementation file
//

// CDlgCnnct dialog
int CDlgCnnct::m_iCnnct=0;

IMPLEMENT_DYNAMIC(CDlgCnnct, CDialog)
CDlgCnnct::CDlgCnnct(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgCnnct::IDD, pParent)
{
}

CDlgCnnct::~CDlgCnnct()
{
}

void CDlgCnnct::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Radio(pDX, IDC_RADIO_NULL, m_iCnnct);
}


BEGIN_MESSAGE_MAP(CDlgCnnct, CDialog)
END_MESSAGE_MAP()


// CDlgCnnct message handlers
